package com.example.chatrecommendation.bean.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author Jasmine-drs
 * @date 2024/5/20 11:15
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AgentUseDto {

	@NotNull(message="[智能体id]不能为空")
	@ApiModelProperty("智能体id")
	private Integer id;

	@NotNull(message="[对话id]不能为空")
	@ApiModelProperty("对话id")
	private Integer chattingId;

	@NotBlank(message="[智能体名称]不能为空")
	@Size(max= 255,message="编码长度不能超过255")
	@ApiModelProperty("智能体名称")
	private String name;

	@ApiModelProperty("智能体描述")
	private String description;

	@ApiModelProperty("智能体配置信息")
	private String config;

	@ApiModelProperty("历史记录数据")
	private List<Messages> message;
}
